package routers

import (
	"git.900sui.cn/kc/rpcPay/service"
	"github.com/smallnest/rpcx/server"
	"log"
)

func InitRpcRouters(rpcServer *server.Server) {
	if err := rpcServer.Register(new(service.Pay), ""); err != nil {
		log.Fatalf("failed to register rpcRouter: %v", err)
	}
	if err := rpcServer.Register(new(service.Insure), ""); err != nil {
		log.Fatalf("failed to register rpcRouter: %v", err)
	}
	if err := rpcServer.Register(new(service.XindaluPay), ""); err != nil {
		log.Fatalf("failed to register rpcRouter: %v", err)
	}
	if err := rpcServer.Register(new(service.ReiationFileDownload), ""); err != nil {
		log.Fatalf("failed to register rpcRouter: %v", err)
	}
}
